package com.quad.innovators.salesease.lock;

public interface RepeatSubmitLock {

    /**
     * 加锁
     * @param lockKey 锁key
     * @param leaseTime 锁key
     */
    boolean tryLock(String lockKey, long leaseTime);


    /**
     * 解锁
     * @param lockKey 锁key
     */
    void unlock(String lockKey);
}
